#include "FontRessource.hpp"

FontRessource::FontRessource(std::string filename) : AbstractRessource<sf::Font>(filename)
{
}

FontRessource::~FontRessource()
{
	UnloadRessource();
}

void FontRessource::LoadRessource()
{
	if(m_loaded == false)
	{
		m_ressource = new sf::Font;
		m_loaded = m_ressource->LoadFromFile(m_filename);
	}

}

void FontRessource::UnloadRessource()
{
	delete m_ressource;
	m_ressource = NULL;
	m_loaded = false;
}